<div class="modal-header">
    <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
    <h4 class="modal-title">项目里程碑计划管理</h4>
</div>
<div class="modal-body">
    <form role="form" class="validator_form" action="{:url('/Index/Project/ProjectRisk/edit')}" id="editProjectRiskForm" method="post">
        <input type="hidden" name="id" value="{$info.id?=$info.id}">
        <div class="box-body">

            <div class="form-group">
                <label>计划名称</label>
                <select name="plan_id" class="form-control" required>
                                <option value="">请选择</option>
                                {volist  name="plan_list" id="vo"}
                                <option value="{$vo.id}" {$vo['id']==$info.plan_id?'selected="selected"':''}>{$vo.title}</option>
                                {/volist}
                            </select>

            </div>
            <div class="form-group">
                <label>风险类型</label>
                <select name="mtype" class="form-control" required>
                            <option value="">请选择</option>
                            {volist  name="risk_type" id="vo"}
                            <option value="{$vo.m_value}" {$vo['m_value']==$info.mtype?'selected="selected"':''}>{$vo.m_name}</option>
                            {/volist}
                        </select>


            </div>
            <div class="form-group">
                <label>风险详情</label>
                <textarea name="content" class="form-control" id="content" required placeholder="风险详情">
                                {$info.content?=$info.content}
                            </textarea>
            </div>
            <div class="form-group">
                <label>解决策略</label>
                <textarea name="solution" class="form-control" id="solution" required placeholder="解决策略">
                                {$info.solution?=$info.solution}
                            </textarea>
            </div>
            <div class="form-group">
                <label>状态</label>

                <select name="status" class="form-control" required>
                                <option value="">请选择</option>
                                {volist  name="risk_status" id="vo"}
                                <option value="{$vo.m_value}" {$vo['m_value']==$info['status']?'selected="selected"':''}>{$vo.m_name}</option>
                                {/volist}
                            </select>

            </div>
            <div class="form-group">
                <label>预计解决时间</label>
                <input type="text" name="solve_time" class="form-control datepicker " id="solve_time" value="{$info.solve_time?=$info.solve_time}" readonly="readonly" required placeholder="预计解决时间">
            </div>
            <div class="form-group">
                <label>实际解决时间</label>
                <input type="text" name="real_solve_time" class="form-control datepicker" id="real_solve_time" value="{$info.real_solve_time?=$info.real_solve_time}" readonly="readonly" required placeholder="实际解决时间">
            </div>

            <div class="form-group">
                <label>协助人</label>

                <select name="assist_uids[]" class="form-control select2" required multiple>
                                <option value="">请选择</option>
                                {volist  name="user_list" id="vo"}
                                <option value="{$vo.id}">{$vo.nickname}</option>
                                {/volist}
                            </select>

            </div>
            <div class="form-group">
                <label>备注</label>
                <input type="text" name="remark" class="form-control" id="remark" value="{$info.remark?=$info.remark}" placeholder="备注">
            </div>


        </div>
        <div class="box-footer">
            <button type="submit" class="btn btn-primary">确认</button>
        </div>

    </form>
</div>
<script>
    $('.datepicker').datepicker({
        language: 'zh-CN',
        autoclose: true
    });
    $(".select2").select2();
    ajax_form_submit("editProjectRiskForm");
</script>